﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;

namespace WarehouseManagement.Header
{
    public static class WarehouseHeader
    {
        public const String
            // Table or View name
            TB_NHOM_VT_89 = "NhomVT_89",
            VW_VAT_TU = "ViewVT";
                   
    }
    
    public struct StructVanVatLieu
	{
		public string sIDVan, sNhomVan, sMatHoanThien, sGhiChu;
	}

    public struct StructVatTu
    {
        public String sID_1 ;
        public String sID_2;
        public String sID_3;
        public String sID_45;
        public String sID_67;

        public string sVTID;
        public string sTenVT;
        public String sID_NK;
        public String sID_NCC;
        public String sID_89;
        public string sLVID;
        public String sID_ShortID;
        public double dTonKho;
        public double dNgang;
        public double dCao;
        public double dSau;
        public string sDonVi;
        public string sGhiChu;

        public StructVatTu(String initValue)
        {
            
            sID_1   = CommonHeader.BLANK ;
            sID_2   = CommonHeader.BLANK;
            sID_3   = CommonHeader.BLANK;
            sID_45  = CommonHeader.BLANK;
            sID_67  = CommonHeader.BLANK;
            sID_89  = CommonHeader.BLANK;

			sLVID = CommonHeader.BLANK;

            sID_NK  = CommonHeader.BLANK;
            sID_NCC = CommonHeader.BLANK;
            sID_ShortID = CommonHeader.BLANK;
            
            dTonKho     = 1.0;
            dNgang      = 1.0;
            dCao        = 1.0;
            dSau        = 1.0;
            sDonVi      = "m";
            sGhiChu     = CommonHeader.BLANK;
            sTenVT = CommonHeader.BLANK;
            sVTID = CommonHeader.BLANK;
        }
    }
    
    public struct StructDeXuatVT
    {
		public string sDHID, sHMSPID, sVersion, sDXVTID, sVTID ,dNgang, dCao, dSau,
				dSL, sBoPhanNhan, sNgayDeXuat, sGhiChu, sStatus, sNVDeXuat;		
		
		public void setValue(string donhang, string hangmuc, string ver)
		{
			sDHID = donhang;
			sHMSPID = hangmuc;
			sVersion = ver;			
		}
		
    }
}
